package com.iflytek.uoamp.agent.monitor.version;

import java.util.Arrays;
import java.util.Map;

import com.iflytek.uoamp.agent.core.sender.monitorsender.responseObj.NewVersion;

//import org.apache.commons.codec.binary.Base64;

public class Base64Version {
	private Map<String, String> headers;
	private String body;

	public Base64Version(){
		
	}
	
	public Base64Version(NewVersion version){
		this.headers = version.getHeaders();
//		setBodyByBase64(version.exchangeBodyToByte()); 
	}
	
	public Map<String, String> getHeaders() {
		return headers;
	}

	public void setHeaders(Map<String, String> headers) {
		this.headers = headers;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

//	public void setBodyByBase64(byte[] body) {
//		byte[] temp = Arrays.copyOf(body,body.length);
//		this.body = new String(new Base64().encode(temp));
//	}
//	
//	public byte[] getBodyByBase64() {
//		return new Base64().decode(body.getBytes());
//	}
	
}
